<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en">
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
        <title><?php echo $post->title; ?> - Yogette's Post Edit</title>
        <link href="<?php echo base_url(); ?>/yogette/css/yogette.css" rel="stylesheet" type="text/css"/>
    </head>
    <body id="blog_entry" class="body-user">
        <div class="main-wrapper-blog-entry" >
            <img class="pinkcircle" src="<?php echo base_url(); ?>yogette/images/pinkCircle.jpg"/>
            <div class="Container"></div>
            <div class="menulist">
                <ul class="menulist-ul">
                    <li><img class="ice-cream" src="<?php echo base_url(); ?>yogette/images/logoIcon.jpg"/><a class="blog-div-a" href="/yogette/blog"><img src="<?php echo base_url(); ?>yogette/images/blog.jpg" class="home" alt="Yogette's Homepage"/></a></li>
                </ul>
            </div>
            <div class="blog-div">
                
                
              
                <table border="0" width="1050" dir="ltr" cellpadding="10"> 
                    <th class="blog-div-th">Blog</th>
                    <tr>
                        <td>
                            <h2  class="blog-div-h2"><?php echo $post->post_title; ?></h2>
                            <span class="metadata"><?php echo $post->author_name; ?></span><br/>
                            <span class="blog-div-p"><?php echo $post->body; ?></span>
                        </td>
                    </tr>
                    
                <?php echo form_open(base_url() . 'yogette/blog/update_post/'.$post->post_id);
                
                  $body = array(
                    'name' => 'body',
                    'id' => 'body',
                    'value' => set_value('body')
                );?>
                <?=form_hidden('post_id', $this->uri->segment(3));?>     
                    
                    <tr>
                        <td>
                            <p><textarea name="body" rows="10" cols="40" ></textarea></p>
                        </td>
                    </tr>
                </table>
                <?php echo validation_errors(); ?>
                <?php echo form_submit(array('name' => 'submit'), 'Submit Post Changes'); ?>
                <?php form_close();?>
                <!--adding the comment if you wanted-->
                
                
                
                <!--<div class="blog-comment">
                    <h2>New Comment</h2>
                    <?php// echo validation_errors(); ?>
                    <?php
                    //if ($this->session->flashdata('message')) {
                    //    echo $this->session->flashdata('message');
                    //}
                    ?>
                    <?php //echo form_open('blog/add_new_entry'); ?>
                    <p>Title:<br />
                        <input type="text" name="entry_name" />
                    </p>
                    <p>Body:<br />
                        <textarea name="entry_body" rows="5" cols="50" style="resize:none;"></textarea>
                    </p>
                    <input type="submit" value="Submit" />
                    <?php// echo form_close(); ?>
                </div>
                <div class="blog-comment">
                    <h1><?php// echo $heading?></h1>


                    <?php//   foreach($query->result() as $row):?>
                    <h3><?php //echo $row->title; ?></h3>
                    <p><?php //echo $row->body; ?></p>

                    <p><?php// echo anchor('blog/comments/'.$row->id, 'Comments'); ?></p>
                    <hr/>
                    <?php //endforeach;?> 
                </div>-->
                    
                
                
                
                
                <p><a class="blog-div-a" href="/yogette/blog/">Back to Yogette's Blog</a></p>
            </div>
        </div>

        <!-- footer start-->
        <div class="pre-footer" >   
        </div>
        <div class="footer">
            <div>
                <p class="footer-p1">yogurt is healthy</p>
            </div>
            <div>
                <p class="footer-p2">Copyright &COPY; 2010 YOGETTE.</p>
            </div>
        </div>
        <img class="post-footer" src="<?php echo base_url(); ?>yogette/blank.jpg" id="blank" name="blank" /> 
        <!-- footer ends-->
    </body>
</html>  